package com.itmd.controller;

import com.itmd.service.TransService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class WebController {
    public static void main(String[] args) {

        ApplicationContext app = new ClassPathXmlApplicationContext("applicationContext.xml");

        TransService transService = app.getBean(TransService.class);

        transService.tarnsMoney("王五","李四",500);


    }
}
